package com.lzh.shijicloudstack.model.dto.cookbook;

import com.lzh.shijicloudstack.model.entity.CookbookProcess;
import com.lzh.shijicloudstack.model.vo.ingredient.IngredientVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author luzhiheng
 * @date 2025-02-08
 */
@Data
@ApiModel(value = "AddEditCookbookDto", description = "新增/编辑食谱")
public class AddEditCookbookDto {

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    private Long id;

    /**
     * 菜谱名称
     */
    @NotEmpty(message = "菜谱名称不能为空")
    @ApiModelProperty(value = "菜谱名称")
    private String name;

    /**
     * 食材列表
     */
    @ApiModelProperty(value = "食材列表")
    private List<IngredientVO> ingredientVOList;

    /**
     * 图片
     */
    @ApiModelProperty(value = "图片")
    private String img;

    /**
     * 工艺
     */
    @ApiModelProperty(value = "工艺")
    private String craft;

    /**
     * 口味
     */
    @ApiModelProperty(value = "口味")
    private String taste;

    /**
     * 耗时
     */
    @ApiModelProperty(value = "耗时")
    private String timeConsuming;

    /**
     * 难度
     */
    @ApiModelProperty(value = "难度")
    private String difficulty;


    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 制作流程列表
     */
    @ApiModelProperty(value = "制作流程列表")
    private List<CookbookProcess> cookbookProcessList;

    /**
     * 菜谱分类ID列表
     */
    @ApiModelProperty(value = "菜谱分类ID列表")
    private List<Long> cookbookCategoryIdList;
}
